package com.sihai.ehr.model.biz;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.sihai.core.BaseEntity;

/**
 * 考核得分细节表
 * 
 * @author Henry
 * 
 */
@Entity
public class ExamQualScoreDetail extends BaseEntity<Long> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8496697294644905429L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	/** 考核评分ID */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "examscore_id")
	private ExamQualScore examScore;

	/** 考核项目ID */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "examitem_id")
	private ExamQualItemSet examQualItemSet;

	/** 原始分数 */
	private Float rawScore;
	/** 调整分数 */
	private Float adjustScore;

	@Override
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public ExamQualScore getExamScore() {
		return examScore;
	}

	public void setExamScore(ExamQualScore examScore) {
		this.examScore = examScore;
	}

	public ExamQualItemSet getExamQualItemSet() {
		return examQualItemSet;
	}

	public void setExamQualItemSet(ExamQualItemSet examQualItemSet) {
		this.examQualItemSet = examQualItemSet;
	}

	public Float getRawScore() {
		return rawScore;
	}

	public void setRawScore(Float rawScore) {
		this.rawScore = rawScore;
	}

	public Float getAdjustScore() {
		return adjustScore;
	}

	public void setAdjustScore(Float adjustScore) {
		this.adjustScore = adjustScore;
	}
}
